package com.wangijun.yuan.admin.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "sys_menu")
public class SysMenu implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 父级ID
     */
    @TableField(value = "pid")
    private Long pid;

    /**
     * 名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 菜单类型,menu,button,menu类型下添加菜单自动变目录，button下不可添加目录以及按钮，
     */
    @TableField(value = "`type`")
    private String type;



    /**
     * 权限编码
     */
    @TableField(value = "url")
    private String url;


    /**
     * 权限编码
     */
    @TableField(value = "auth")
    private String auth;


    /**
     * 排序
     */
    @OrderBy(asc = true)
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 排序
     */
    @TableField(value = "`remark`")
    private String remark;

    private static final long serialVersionUID = 1L;
}